﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{
    [XmlRoot("MESSAGE")]
    public sealed class MachineFrequencyMessage : BaseTibcoMessage<MachineFrequencyMessageBody>
    {
        public MachineFrequencyMessage()
        {

        }

        public MachineFrequencyMessage(MachineFrequencyMessageBody body = null, string inboxName = "", string listener = "")
            : base("MachineFrequencyRequest", body, inboxName, listener)
        {
        }
    }


    public sealed class MachineFrequencyMessageBody
    {
        public MachineFrequencyMessageBody()
        {

        }
        public MachineFrequencyMessageBody(string machineName, string frequency)
        {
            MACHINEFREQUENCY = frequency;
            MACHINENAME = machineName;
            EVENTUSER = machineName;
        }
        public string MACHINENAME { get; set; }
        public string MACHINEFREQUENCY { get; set; }
        public string EVENTUSER { get; set; }
        public string EVENTCOMMMENT { get; set; }
    }
}
